/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.expert.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 专家库Entity
 * @author 卢经纬
 * @version 2018-06-26
 */
public class ExpertLibrary extends DataEntity<ExpertLibrary> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 姓名
	private String tel;		// 电话
	private String company;		// 公司
	private String position;		// 职务
	private String parentSituation;		// 父母情况
	private String childSituation;		// 子女情况
	private Date birthday;		// 生日
	private String pRelationshipNetwork;		// 个人关系网
	private String personalPreference;		// 个人喜好
	
	public ExpertLibrary() {
		super();
	}

	public ExpertLibrary(String id){
		super(id);
	}

	@ExcelField(title="姓名", align=2, sort=7)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@ExcelField(title="电话", align=2, sort=8)
	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}
	
	@ExcelField(title="公司", align=2, sort=9)
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}
	
	@ExcelField(title="职务", align=2, sort=10)
	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}
	
	@ExcelField(title="父母情况", align=2, sort=11)
	public String getParentSituation() {
		return parentSituation;
	}

	public void setParentSituation(String parentSituation) {
		this.parentSituation = parentSituation;
	}
	
	@ExcelField(title="子女情况", align=2, sort=12)
	public String getChildSituation() {
		return childSituation;
	}

	public void setChildSituation(String childSituation) {
		this.childSituation = childSituation;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="生日不能为空")
	@ExcelField(title="生日", align=2, sort=13)
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	
	@ExcelField(title="个人关系网", align=2, sort=14)
	public String getPRelationshipNetwork() {
		return pRelationshipNetwork;
	}

	public void setPRelationshipNetwork(String pRelationshipNetwork) {
		this.pRelationshipNetwork = pRelationshipNetwork;
	}
	
	@ExcelField(title="个人喜好", align=2, sort=15)
	public String getPersonalPreference() {
		return personalPreference;
	}

	public void setPersonalPreference(String personalPreference) {
		this.personalPreference = personalPreference;
	}
	
}